\pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ulnone\fs28\fc0\cf0 Q: I am writing a simple editor program, which loads in a nib file for each document created. I noticed with MallocDebug that there is a consistent leak of 22 bytes for every newly created document window, even though the documentation says that the default window is to be freed when closed. Why is it leaking?\
\
A: The default window created with InterfaceBuilder is somewhat different from the default window created with the methods
\b alloc
\b0 and
\b initContent:style:backing:buttonMask
\b0 . The InterfaceBuilder default window is not automatically freed when closed. To fix this problem, simply check the "Free when closed" option in the Window Attributes Panel, using the InterfaceBuilder Projects inspector.\